<template>
    <div>
        <div :class="['one',isShow?'two':'']">detail</div>
        <!-- 如何频繁的要显示或者隐藏元素v-show -->
        <div v-show="isShow">
            show
        </div>
    </div>
</template>

<script>
    export default {
        data() {
            return {
                isShow:true
            }
        },
        mounted() {
            console.log(this.$route.params);
        }
    }
</script>

<style scoped>

</style>